package com.hamizhong.iflowers.service;

import com.hamizhong.iflowers.web.dto.IOPResultDto;
import com.hamizhong.iflowers.web.vo.AdminVO;
import com.hamizhong.iflowers.web.vo.IObjectVO;
import com.hamizhong.iflowers.web.vo.UserVO;

public interface IUserService {
	
	IOPResultDto doRegistUser(UserVO userVO);

	IOPResultDto findByEmail(String userEmail);

	IOPResultDto findByPhone(String userPhone);

	IOPResultDto doLoginUser(UserVO userVO);

	IOPResultDto<IObjectVO> findByCondition(String searchCondition, Integer pageNum, int pageSize);

	IOPResultDto<IObjectVO> findByUserId(Integer userId);

	IOPResultDto<IObjectVO> updateUser(UserVO userVO, Integer opId);

	IOPResultDto<IObjectVO> updateUserPassword(UserVO userVO, String newUserPassword, Integer opId);

	IOPResultDto<IObjectVO> checkUserPassword(Integer userId, String oldUserPassword);
	
}
